/*
 Navicat Premium Data Transfer

 Source Server         : 本机SQL Server
 Source Server Type    : SQL Server
 Source Server Version : 13001742
 Source Host           : localhost:1433
 Source Catalog        : Hotel
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 13001742
 File Encoding         : 65001

 Date: 04/01/2022 20:04:28
*/


-- ----------------------------
-- Table structure for t_admin
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[t_admin]') AND type IN ('U'))
	DROP TABLE [dbo].[t_admin]
GO

CREATE TABLE [dbo].[t_admin] (
  [id] int  IDENTITY(1,1) NOT NULL,
  [account] varchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [password] varchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [name] varchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [role] varchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[t_admin] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of t_admin
-- ----------------------------
SET IDENTITY_INSERT [dbo].[t_admin] ON
GO

INSERT INTO [dbo].[t_admin] ([id], [account], [password], [name], [role]) VALUES (N'1', N'1499', N'$2a$10$Pbu22DyCVDgqjgAslRd.NeNH.qlCHX8N93LntoPrsvnioDol7QQky', N'九思', N'root')
GO

INSERT INTO [dbo].[t_admin] ([id], [account], [password], [name], [role]) VALUES (N'2', N'123456', N'$2a$10$/JdEepUlgvL55S9JDMsnV.GCIppJD9bImrSttQxlZQ80X/HKmwRqC', N'123456', N'staff')
GO

INSERT INTO [dbo].[t_admin] ([id], [account], [password], [name], [role]) VALUES (N'3', N'123', N'$2a$10$NEdXwjCYMkhKz59yPqvUo.FFV8IoNP9yvAiE3iwf2z.3./yYBua4G', N'123123', N'staff')
GO

INSERT INTO [dbo].[t_admin] ([id], [account], [password], [name], [role]) VALUES (N'5', N'qwe', N'$2a$10$a2DV2CVK.HbzokbzMOt7U.sY2bM8VoTjY4Cn7mw0AAPGp2ytMeHdS', N'qwe', N'admin')
GO

INSERT INTO [dbo].[t_admin] ([id], [account], [password], [name], [role]) VALUES (N'6', N'qwert', N'$2a$10$y150rHgXFTFdgF5RvfeHt.blesfeXh9iNfq90PtIBnAURUIkPekV2', N'qwert', N'admin')
GO

INSERT INTO [dbo].[t_admin] ([id], [account], [password], [name], [role]) VALUES (N'7', N'asdf', N'$2a$10$t2CHWDW.w4FCDOxASqKBc.qoaIn7Ux8x2Vbd6m0N1NjEoiSYrJYAa', N'asdf', N'admin')
GO

INSERT INTO [dbo].[t_admin] ([id], [account], [password], [name], [role]) VALUES (N'8', N'123qwe', N'$2a$10$yUH/5fwm9Sx2dGbsnKN22OgCqqDkNVMUixHR7HmiUsGE6v5Z3o3.S', N'123qwe', N'staff')
GO

INSERT INTO [dbo].[t_admin] ([id], [account], [password], [name], [role]) VALUES (N'9', N'asd', N'$2a$10$W2rEro4a28Qx9F0i7lCbgu.oevwXqj1AaQgrht.LAld924BhoI2ni', N'123', N'admin')
GO

SET IDENTITY_INSERT [dbo].[t_admin] OFF
GO


-- ----------------------------
-- Auto increment value for t_admin
-- ----------------------------
DBCC CHECKIDENT ('[dbo].[t_admin]', RESEED, 9)
GO


-- ----------------------------
-- Uniques structure for table t_admin
-- ----------------------------
ALTER TABLE [dbo].[t_admin] ADD CONSTRAINT [UQ__t_admin__account] UNIQUE NONCLUSTERED ([account] ASC)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Primary Key structure for table t_admin
-- ----------------------------
ALTER TABLE [dbo].[t_admin] ADD CONSTRAINT [PK__t_admin__id] PRIMARY KEY CLUSTERED ([id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

